﻿/*
 * Created by SharpDevelop.
 * User: ley
 * Date: 5/16/2010
 * Time: 8:44 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using Ley.Common.Framework;

namespace Ley.Common.Validation
{
	public static class Validate
	{
		public static Validator<TSubject> InstanceOf<TSubject>(TSubject subject)
		{
			Protect.Against<InvalidOperationException>(subject == null, "validation subject cannot be null.");
			return new Validator<TSubject>(subject);
		}
	}
}
